package com.jiantong.work.service;

import com.jiantong.work.model.VeterinaryDrugsReport;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.Date;
import java.util.Map;

/**
 * Created by mz03 on 2017/3/14.
 */
public interface VeterinaryDrugsReportReadService {

    /**
     * id 查找
     * @param id
     * @return
     */
    Response<VeterinaryDrugsReport> finById(Long id);

    /**
     * @param id 主 键
     * @return 状态
     */
    Response<Map<String, Object>> findStatusById(Long id);

    /**
     * 按状态查询当前养殖场饲料记录列表
     *
     */
    Response<Paging<VeterinaryDrugsReport>> pagingVeterinaryDrugsReport(Integer pageNo, Integer pageSize, Integer status, Long breedFactoryId);

    /**
     * 按从日期、到日期和养殖场名称查询本市养殖场饲料记录列表
     */
    Response<Paging<VeterinaryDrugsReport>> pagingVeterinaryDrugsReports(Integer pageNo, Integer pageSize, Long breedFactoryId, Integer breedType, Date fromDate, Date toDate);

    Response<Paging<VeterinaryDrugsReport>> pagingbytimes (Integer pageNo, Integer pageSize, Map<String,Object> criteria);

    Response<Integer> countForWeb(Map<String, Object> map);
}
